const state = {
    food: {}
}
const actions = {
    saveFood: ({ commit }, payload) => {
        commit('SAVEFOOD', payload)
    },
    clearFood: ({ commit }) => {
        commit('CLEARFOOD')
    }
}

const mutations = {
    SAVEFOOD: (state, payload) => {
        state.food = payload
    },
    CLEARFOOD: (state) => {
        state.food = {}
    }
}

export default {
    state,
    actions,
    mutations
}